Skip to content

refactor(match2): ffa match summaries to widget3#7697

Merged
Rathoz merged 6 commits into
mainfrom
match2-ffa-widget3
Jun 25, 2026
Merged

refactor(match2): ffa match summaries to widget3#7697
Rathoz merged 6 commits into
mainfrom
match2-ffa-widget3

Conversation

@ElectricalBoy

Copy link
Copy Markdown
Collaborator

How did you test this change?

trivial

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors FFA match summary rendering to Widget3 by migrating many match-summary entrypoints and shared FFA summary widgets away from the legacy Module:Widget/Html/All import and Widget2 class-style widgets.

Changes:

  • Switch FFA match summary modules (multiple wikis + commons) from Module:Widget/Html/All to Module:Widget/Html, and update return annotations to Renderable/VNode.
  • Refactor several shared FFA summary widgets to functional components via Module:Widget/Component.
  • Update commons FFA base summary rendering to use Widget3 Html.* nodes consistently.

Reviewed changes

Copilot reviewed 43 out of 43 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
lua/wikis/warcraft/MatchSummary/Ffa.lua Update FFA match summary to use Module:Widget/Html + Widget3 types/casts.
lua/wikis/underlords/MatchSummary/Ffa.lua Same Widget3 HTML import + type/cast adjustments.
lua/wikis/trackmania/MatchSummary/Ffa.lua Same Widget3 HTML import + type/cast adjustments.
lua/wikis/thefinals/MatchSummary/Ffa.lua Same Widget3 HTML import + type/cast adjustments.
lua/wikis/tft/MatchSummary/Ffa.lua Same Widget3 HTML import + type/cast adjustments.
lua/wikis/pubgmobile/MatchSummary/Ffa.lua Same Widget3 HTML import + type/cast adjustments.
lua/wikis/pubg/MatchSummary/Ffa.lua Same Widget3 HTML import + type/cast adjustments.
lua/wikis/naraka/MatchSummary/Ffa.lua Same Widget3 HTML import + type/cast adjustments.
lua/wikis/lab/MatchSummary/Ffa.lua Same Widget3 HTML import + type/cast adjustments.
lua/wikis/hearthstone/MatchSummary/Ffa.lua Same Widget3 HTML import + type/cast adjustments.
lua/wikis/halo/MatchSummary/Ffa.lua Same Widget3 HTML import + type/cast adjustments.
lua/wikis/geoguessr/MatchSummary/Ffa.lua Same Widget3 HTML import + type/cast adjustments.
lua/wikis/freefire/MatchSummary/Ffa.lua Same Widget3 HTML import + type/cast adjustments.
lua/wikis/fortnite/MatchSummary/Ffa.lua Same Widget3 HTML import + type/cast adjustments.
lua/wikis/counterstrike/MatchSummary/Ffa.lua Same Widget3 HTML import + type/cast adjustments.
lua/wikis/commons/Widget/Match/Summary/Ffa/Trophy.lua Convert Trophy widget to Widget3 functional component.
lua/wikis/commons/Widget/Match/Summary/Ffa/TableRowCell.lua Convert TableRowCell widget to Widget3 functional component + props typing.
lua/wikis/commons/Widget/Match/Summary/Ffa/TableRow.lua Convert TableRow widget to Widget3 functional component.
lua/wikis/commons/Widget/Match/Summary/Ffa/TableHeaderCell.lua Convert TableHeaderCell widget to Widget3 functional component + props typing.
lua/wikis/commons/Widget/Match/Summary/Ffa/TableHeader.lua Convert TableHeader widget to Widget3 functional component (needs scoping fix).
lua/wikis/commons/Widget/Match/Summary/Ffa/Table.lua Convert Table widget to Widget3 functional component.
lua/wikis/commons/Widget/Match/Summary/Ffa/Tab.lua Convert Tab widget to Widget3 functional component.
lua/wikis/commons/Widget/Match/Summary/Ffa/RankRange.lua Convert RankRange widget to Widget3 functional component + interleaving output.
lua/wikis/commons/Widget/Match/Summary/Ffa/PointsDistribution.lua Update widget to use Module:Widget/Html instead of Html/All.
lua/wikis/commons/Widget/Match/Summary/Ffa/Mvp.lua Convert MVP widget to Widget3 functional component.
lua/wikis/commons/Widget/Match/Summary/Ffa/MatchInformation.lua Refactor MatchInformation rendering to Widget3 component style.
lua/wikis/commons/Widget/Match/Summary/Ffa/MatchComment.lua Convert MatchComment widget to Widget3 functional component.
lua/wikis/commons/Widget/Match/Summary/Ffa/Header.lua Convert Header widget to Widget3 functional component.
lua/wikis/commons/Widget/Match/Summary/Ffa/GamesSchedule.lua Refactor GamesSchedule rendering to Widget3 component style.
lua/wikis/commons/Widget/Match/Summary/Ffa/GameDetails.lua Convert GameDetails widget to Widget3 functional component.
lua/wikis/commons/Widget/Match/Summary/Ffa/GameCountdown.lua Convert GameCountdown widget to Widget3 functional component.
lua/wikis/commons/Widget/Match/Summary/Ffa/CountdownIcon.lua Convert CountdownIcon widget to Widget3 functional component.
lua/wikis/commons/Widget/Match/Summary/Ffa/ContentItemContainer.lua Convert ContentItemContainer widget to Widget3 functional component + boolean handling.
lua/wikis/commons/Widget/Match/Page/Comment.lua Adjust return type annotation to VNode.
lua/wikis/commons/Widget/GeneralCollapsible/Toggle.lua Adjust return type annotation to VNode.
lua/wikis/commons/MatchSummary/Starcraft/Ffa.lua Update commons Starcraft FFA match summary to use Module:Widget/Html + Widget3 types/casts.
lua/wikis/commons/MatchSummary/Base/Ffa.lua Switch base FFA summary rendering to Module:Widget/Html and update return annotations.
lua/wikis/commons/GameSummary.lua Adjust match type annotation to use ---@cast.
lua/wikis/callofduty/MatchSummary/Ffa.lua Update FFA match summary to use Module:Widget/Html + Widget3 types/casts.
lua/wikis/autochess/MatchSummary/Ffa.lua Update FFA match summary to use Module:Widget/Html + Widget3 types/casts.
lua/wikis/arenafps/MatchSummary/Ffa.lua Update FFA match summary to use Module:Widget/Html + Widget3 types/casts.
lua/wikis/apexlegends/MatchSummary/Ffa.lua Update FFA match summary to use Module:Widget/Html + Widget3 types/casts.
lua/wikis/ageofempires/MatchSummary/Ffa.lua Update FFA match summary to use Module:Widget/Html + Widget3 types/casts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lua/wikis/commons/Widget/Match/Summary/Ffa/TableHeader.lua Outdated
@ElectricalBoy ElectricalBoy requested a review from Rathoz June 25, 2026 07:46

@hjpalpha hjpalpha left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

skimmed through it on phone
looks reasonable

@Rathoz Rathoz merged commit 10e8def into main Jun 25, 2026
7 checks passed
@Rathoz Rathoz deleted the match2-ffa-widget3 branch June 25, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants